<?php
use Illuminate\Support\Facades\Route;
use App\Http\Controllers\IndexController;
use App\Http\Controllers\AdminController;
/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| contains the "web" middleware group. Now create something great!
|
*/
//如下是前台路由(后期分路由)


    //主页面渲染(进入的第一个视图)
    Route::get('/', [IndexController::class, 'index']);
    //我的主页页面渲染
    Route::get('/mine',[IndexController::class, 'mine']);
    //关于我们渲染
        Route::get('/contact',[IndexController::class, 'contact']);
    //主页登录页面渲染
        Route::get('/login',[IndexController::class, 'login']);
    //主页注册页面渲染
        Route::get('/register',[IndexController::class, 'register']);
    //公司简介渲染
        Route::any('/company',[IndexController::class, 'company']);
    //公司文化渲染
        Route::get('/cuture',[IndexController::class, 'cuture']);
    //加入我们渲染
        Route::get('/join',[IndexController::class, 'join']);
    //二手房页面渲染
        Route::get('/secondhouse',[IndexController::class, 'secondhouse']);
    //租房页面渲染路由
        Route::get('/renting',[IndexController::class, 'renting']);
    //二手房详情页面渲染
    Route::get('/housedetail/id/{id}',[IndexController::class, 'housedetail']);
    //二手房详情页面渲染
    Route::get('/housedetailer',[IndexController::class, 'housedetailer']);
    //关于我们
    Route::get('/enter',[IndexController::class, 'enter']);
    //关注的房源
    Route::get('/focushouse/id/{id}',[IndexController::class, 'focushouse']);
    //关注的小区
    Route::get('/focuscommunity',[IndexController::class, 'focuscommunity']);
    //看房记录
    Route::get('/checkinglog/id/{id}',[IndexController::class, 'checkinglog']);
    //个人信息
    Route::get('/self/id/{id}',[IndexController::class, 'self']);
    //设置功能
    Route::get('/set_er',[IndexController::class, 'set_er']);
    //设置
    Route::get('/set/id/{id}',[IndexController::class, 'set']);
    //经纪人页面渲染
    Route::get('/agent',[IndexController::class, 'agent']);
    //经纪人简介页面
    Route::get('/agentdetail/id/{id}',[IndexController::class, 'agentdetail']);
    //用户注册功能
    Route::post('/registerin',[IndexController::class, 'registerin']);
    //用户登录功能
    Route::post('/loginin',[IndexController::class, 'loginin']);
    //用户退出功能
    Route::any('/login_out',[IndexController::class, 'login_out']);




//如下是后台路由(后期再来完善分路由)
//后台登录页面渲染
    Route::any('/admin/login',[AdminController::class, 'login']);
//后台登录页面渲染
Route::get('/admin/login1',[AdminController::class, 'login1']);
//后台登录页面渲染
Route::get('/admin/login2',[AdminController::class, 'login2']);
//后台登录页面渲染
Route::get('/admin/login3',[AdminController::class, 'login3']);
//后台主页渲染
    Route::get('/admin/admin',[AdminController::class, 'admin']);
    //主页一页面渲染
    Route::get('/admin/welcome1',[AdminController::class, 'welcome1']);
    //主页三页面渲染
    Route::get('/admin/welcome3',[AdminController::class, 'welcome3']);
    //租房管理页面渲染
    Route::get('/admin/rent',[AdminController::class, 'rent']);
    //二手房管理页面渲染路由
    Route::get('/admin/secondhouse',[AdminController::class, 'secondhouse']);
    //用户修改页面渲染
    Route::any('/admin/user_xiugai/id/{id}',[AdminController::class, 'user_xiugai']);
    //后台工作人员添加
    Route::any('/admin/add_adminuser',[AdminController::class, 'add_adminuser']);
    //用户管理页面渲染
    Route::any('/admin/user',[AdminController::class, 'user']);
    //租房类型渲染
    Route::get('/admin/rent_houseclass',[AdminController::class, 'rent_houseclass']);
    //后台工作人员管理页面渲染
    Route::any('/admin/adminuser',[AdminController::class, 'adminuser']);
    //后台工作人员修改页面渲染
    Route::any('/admin/admin_xiugai/id/{id}',[AdminController::class, 'admin_xiugai']);
    //租房类型添加页面渲染
    Route::any('/admin/add_rentclass',[AdminController::class, 'add_rentclass']);
    //添加租房功能
    Route::any('/admin/add_rentclass_er',[AdminController::class, 'add_rentclass_er']);
    //租房添加页面渲染
    Route::any('/admin/add_adminuser_renting',[AdminController::class, 'add_adminuser_renting']);
    //租房修改
    Route::any('/admin/add_house_rent/id/{id}',[AdminController::class, 'add_house_rent']);
    //租房修改功能
    Route::any('/admin/add_rent_rent',[AdminController::class, 'add_rent_rent']);
    //租房删除
    Route::any('/admin/rent_deler/id/{id}',[AdminController::class, 'rent_deler']);
    //二手房类型添加页面渲染
    Route::any('/admin/add_sellclass',[AdminController::class, 'add_sellclass']);
    //二手房添加页面渲染
    Route::any('/admin/add_adminuser_house',[AdminController::class, 'add_adminuser_house']);
    //二手房添加页面渲染
    Route::any('/admin/add_house',[AdminController::class, 'add_house']);
    //二手房删除功能add_house_xiugai
    Route::any('/admin/add_house_del/id/{id}',[AdminController::class, 'add_house_del']);
    //二手房修改页面
    Route::any('/admin/add_house_xiugai/id/{id}',[AdminController::class, 'add_house_xiugai']);
    //二手房修改功能
    Route::any('/admin/add_house_xiuer',[AdminController::class, 'add_house_xiuer']);
    //消遣页面路由渲染
    Route::get('/admin/zykp',[AdminController::class, 'zykp']);
    //坦克页面路由渲染
    Route::get('/admin/TankBattle',[AdminController::class, 'TankBattle']);
    //基本信息渲染
    Route::get('/admin/infor',[AdminController::class, 'infor']);
    //按钮
    Route::get('/admin/button',[AdminController::class, 'button']);
    //弹出层
    Route::get('/admin/layer',[AdminController::class, 'layer']);
    //修改密码
    Route::get('/admin/changepwd',[AdminController::class, 'changepwd']);
    //文件上传
    Route::get('/admin/upload',[AdminController::class, 'upload']);
    //图标列表
    Route::get('/admin/icon',[AdminController::class, 'icon']);
    //图标选择
    Route::get('/admin/icon_picker',[AdminController::class, 'icon_picker']);
    //图标选择
    Route::get('/admin/color_select',[AdminController::class, 'color_select']);
    //下拉选择
    Route::get('/admin/table_select',[AdminController::class, 'table_select']);
    //富文本编辑器
    Route::get('/admin/editor',[AdminController::class, 'editor']);
    //省市区选择器
    Route::get('/admin/area',[AdminController::class, 'area']);
    //表单示例
    Route::get('/admin/form',[AdminController::class, 'form']);
    //失效页面
    Route::get('/admin/shi',[AdminController::class, 'shi']);
    //菜单管理
    Route::get('/admin/menu',[AdminController::class, 'menu']);
    //分公司管理
    Route::any('/admin/company',[AdminController::class, 'company']);
    //添加分公司页面渲染
    Route::any('/admin/add_company',[AdminController::class, 'add_company']);
    //公司详情页面渲染
    Route::any('/admin/company_info/id/{id}',[AdminController::class, 'company_info']);
    //以上为渲染






    //以下为功能
    //后台登录功能
    Route::any('/admin/loginin',[AdminController::class, 'loginin']);
    //后台工作人员修改功能
    Route::any('/admin/admin_xiugaiin/id/{id}',[AdminController::class, 'admin_xiugaiin']);
    //个人资料修改功能
    Route::any('/admin/infor/id/{id}',[AdminController::class, 'inforin']);
    //后台工作人员删除功能
    Route::any('/admin/adminuser_del/id/{id}',[AdminController::class, 'adminuser_del']);
    //冻结用户功能
    Route::any('/admin/user_del/id/{id}',[AdminController::class, 'user_del']);
    //解冻用户功能
    Route::any('/admin/user_undel/id/{id}',[AdminController::class, 'user_undel']);
    //后台工作人员添加功能
    Route::any('/admin/add_adminuserin',[AdminController::class, 'add_adminuserin']);
    //租房类型删除
    Route::any('/admin/rent_del/r_id/{r_id}',[AdminController::class, 'rent_del']);
    //租房类型添加功能
    Route::any('/admin/add_rentclassin',[AdminController::class, 'add_rentclassin']);
    //后台退出功能
    Route::any('/admin/login_out',[AdminController::class, 'login_out']);
    //修改密码功能
    Route::any('/admin/changepwdin',[AdminController::class, 'changepwdin']);
    //添加分公司功能
    Route::any('/admin/add_companyin',[AdminController::class, 'add_companyin']);
    //消停公司(意为公司决定停业此分司)
    Route::any('/admin/company_stop/id/{id}',[AdminController::class, 'company_stop']);
    //休息状态功能
    Route::any('/admin/company_rest/id/{id}',[AdminController::class, 'company_rest']);
    //营业状态功能
    Route::any('/admin/company_do/id/{id}',[AdminController::class, 'company_do']);
    //营业状态功能
    Route::any('/admin/adminuser_freeze/id/{id}',[AdminController::class, 'adminuser_freeze']);



















    //测试函数
    Route::any('/admin/domain',[AdminController::class, 'domain']);
